import request from '@/utils/request'

export function http_branch_list(page) {
    return request({
        url: '/branch/getBranchList',
        method: 'get',
        params: {...page}
    })
}



export function http_branch_add(data) {
    return request({
        url: '/branch/addBranch',
        method: 'post',
        data
    })
}


export function http_branch_edit(data) {
    return request({
        url: '/branch/updateBranch',
        method: 'post',
        data
    })
}


export function http_branch_deleted(id) {
    return request({
        url: '/branch/deleteBranch',
        method: 'DELETE',
        params: {id: id}
    })
}
